<template>
  <div>
    <el-container>
      <el-header>
        <div>云端学堂</div>
        <div>这边是很多按钮的位置</div>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <el-menu
            default-active="2"
            class="el-menu-vertical-demo"
            @open="handleOpen"
            @close="handleClose"
            background-color="#545c64"
            text-color="#fff"
            active-text-color="#ffd04b"
          >
            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span @click="$router.push('/jichu')">基础档案</span>
              </template>
            </el-submenu>
            <el-submenu index="2">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span @click="$router.push('/caigou')">采购管理</span>
              </template>
            </el-submenu>
            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span @click="$router.push('/xiaoshou')">销售管理</span>
              </template>
            </el-submenu>
            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span @click="$router.push('/kucun')">库存管理</span>
              </template>
            </el-submenu>
          </el-menu>
        </el-aside>
        <el-main>
          <router-view/>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {};
</script>

<style>
.el-header {
  height: 100px;
  background: skyblue;
  line-height: 50px;
  display: flex;
  justify-content: space-between;
}
.el-aside {
  height: 500px;
}
.el-menu{
  height: 100%;
}
</style>